using HCore.IOC.Beans.Factory.Attribute.Attr;
using HCore.Tests.Runtime.DianDianDian.Model;
using HCore.Tests.Runtime.DianDianDian.System;
using HCore.Unity.Behaviour;

namespace HCore.Tests.Runtime.DianDianDian.UI
{
    public class GamePassPanel : HCoreMonoBehaviour
    {
        [Autowired] private ICountDownSystem mCountDownSystem;
        [Autowired] private IGameModel mGameModel;

        private void Start()
        {
            // Get("Btn-返回首页").AddButtonClickListener(ActionBackGameStartPanel);

            Get("Text-剩余时间").Text.text = $"{mCountDownSystem.GetCurrentRemainSeconds()}";
            Get("Text-得分").Text.text = $"{mGameModel.Score}";
            Get("Text-最高分").Text.text = $"{mGameModel.BestScore}";
        }
    }
}